<template>
  <div>
     Comment页面内容
     {{openComment}}
{{this.$route.params.id}}
  </div>
</template>


<script>
  import Vue from 'vue';
// console.log(this.$route.params.id)
  import {mapActions,mapGetters} from 'vuex';

  export default{
    data(){
      return{

      }
    },
    computed:{
      ...mapGetters(['openComment']),
    },
    methods:{
        ...mapActions(['GET_COMMENT_LIST']),
    },
    // beforecreated(){
    //   console.log(this.$route.params.id)
    //   this.GET_COMMENT_LIST(this.$route.params.id);
    // }
    beforeRouteUpdate(){
      this.GET_COMMENT_LIST(this.$route.params.id);
    }
  }
</script>
